﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Perovich.GameObjects.Interfaces;
using System.Reflection;

namespace Perovich.GameObjects.Helpers
{
    internal class Helper : IHelper
    {
        MethodInfo meth;

        public void Reset()
        {
            meth.Invoke(null, new object[] { });
            Perovich.GameObjects.ComponentsExtensions.Helpers.Remove(this);
        }

        public Helper(MethodInfo method)
        {
            this.meth = method;
        }

    }
}
